//
//  Child.m
//  OC3_继承与初始化方法作业第二题
//
//  Created by 徐国庆 on 14-11-4.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Child.h"

@implementation Child

// 声明指定初始化方法
- (id)initWithFather:(NSString *)father mother:(NSString *)mother name:(NSString *)name sex:(NSString *)sex age:(int)age
{
    self = [super initWithHunband:nil wife:nil son:nil father:father mother:mother name:name sex:sex age:age];
    return self;
}
// 实现方法
- (void)play
{
    NSLog(@"%@就喜欢玩不喜欢学习", _name);
}
- (void)study
{
    NSLog(@"%@就喜欢学习不喜欢玩", _name);
}
















@end
